import { request } from "./fetch";

/** 登录 */
export const postLogin = (data) => {
  return request<any>("post", "/login", { data });
};


// 获取用户列表

export const getMemberList = (domain, phone) => {
  let url = host+'/getMemberList'
  if (phone) {
    url+='?phone='+phone
  }
  return request('get',url)
}

export const updateMemberExpire = (domain, data) => {
  let host = getDomainHost(domain)
  let url = host + '/updateMemberExpire'
  return request<any>("post", url, { data });
}

export const resetMemberPassword = (domain, data) => {
  let host = getDomainHost(domain)
  let url = host + '/resetMemberPassword'
  return request<any>("post", url, { data });
}

export const deleteMemberApi = (domain, data) => {
  let host = getDomainHost(domain)
  let url = host + '/deleteUser'
  return request<any>("post", url, { data });
}

